﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using control.Dal;
namespace control.Biz
{
    public class BizChuDe
    {
        private int maChuDe;

        public int MaChuDe
        {
            get { return maChuDe; }
            set { maChuDe = value; }
        }
        private string tenChuDe;

        public string TenChuDe
        {
            get { return tenChuDe; }
            set { tenChuDe = value; }
        }

        public BizChuDe(int _maChuDe, string _tenChuDe)
        {
            maChuDe = _maChuDe;
            tenChuDe = _tenChuDe;
        }
        public BizChuDe()
        {

        }

        public static List<BizChuDe> GetAll()
        {
            return DalChuDe.GetAll();
        }


        public static BizChuDe GetByMa(int _MaCD)
        {
            return DalChuDe.GetByMa(_MaCD);
        }
    }
}
